package cn.jiyun.controller;

import cn.jiyun.pojo.Student;
import cn.jiyun.service.StudentService;
import com.alibaba.dubbo.config.annotation.Reference;
import com.github.pagehelper.PageInfo;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
import java.util.Map;

@RestController
@RequestMapping("student")
public class StudentController {
    @Reference
    private StudentService studentService;
    @RequestMapping("findPage")
    public PageInfo findPage(Integer pageIndex, @RequestBody Map searchMap){
        return studentService.findPage(pageIndex,searchMap);
    }
    }
